<%-- 
    Document   : sidebar
    Created on : Feb 6, 2012, 3:26:04 PM
    Author     : PhucAn
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="util.SharingUtil"%>
<%@page import="dto.User"%>
<%
    request.setAttribute("user", SharingUtil.getUser(session));
    request.setAttribute("class", SharingUtil.getCurrentClass(session));
%>
<h4>Current selection</h4>
<ul>
    <c:if test="${class.id>0}">
        <li><a href="?pcontent=modify-class&classid=${class.id}">Class: ${class.name}</a></li>
    </c:if>
    <c:if test="${class.id==0}">
        <li><a href="?pcontent=manage-class" style="color:red;font-weight: bold;">Select class</a></li>
    </c:if>
</ul>
<c:if test="${user.role==1|| user.role==2}">
    <%@include  file="sidebar-manager.jsp" %>
</c:if>
<c:if test="${user.role==3}">
    <%@include file="sidebar-student.jsp" %>
</c:if>
